package cn.shopifymall.studying.mybatis.service.impl;

import cn.shopifymall.studying.mybatis.entity.CompanyEntity;
import cn.shopifymall.studying.mybatis.mapper.CompanyMapper;
import cn.shopifymall.studying.mybatis.service.ComponyService;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 孤风雪影
 * @Email gitee.com/efairy520
 * @Date 2022/4/22 18:09
 * @Version 1.0
 */
@Service
public class ComponyServiceImpl extends ServiceImpl<CompanyMapper, CompanyEntity> implements ComponyService {

    @DS("flow")
    @Override
    public List<CompanyEntity> getAllComponysFromFlow() {
        return baseMapper.selectList(null);
    }
}
